package com.studentgrowth.model.learning;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

@TableName("learning_plan")
public class LearningPlan {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("learning_period")
    private String learningPeriod;  // 总学习时长 (如 "3 Months")

    @TableField("daily_duration")
    private Integer dailyDuration;  // 每日学习时长（分钟）

    @TableField("selected_courses")
    private String selectedCourses; // JSON格式存储选中的课程

    @TableField("learning_goals")
    private String learningGoals;   // JSON格式存储学习目标

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLearningPeriod() {
        return learningPeriod;
    }

    public void setLearningPeriod(String learningPeriod) {
        this.learningPeriod = learningPeriod;
    }

    public Integer getDailyDuration() {
        return dailyDuration;
    }

    public void setDailyDuration(Integer dailyDuration) {
        this.dailyDuration = dailyDuration;
    }

    public String getSelectedCourses() {
        return selectedCourses;
    }

    public void setSelectedCourses(String selectedCourses) {
        this.selectedCourses = selectedCourses;
    }

    public String getLearningGoals() {
        return learningGoals;
    }

    public void setLearningGoals(String learningGoals) {
        this.learningGoals = learningGoals;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
} 